package com.huaao.micropolice.core.repository.system;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.huaao.micropolice.core.model.system.Jobs;
import com.huaao.micropolice.core.repository.BaseDao;

@Repository
public class JobsDao extends BaseDao{
	
	public List<Jobs> findByDeptId(String id) {
		List<Jobs> items = null;
		items = getSession().createQuery("FROM Jobs where dept.id = ?").setString(0, id).list();
		return items;
	}

	public Jobs load(String id) {
		return (Jobs)load(Jobs.class,id);
	}
}
